package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/2/11 14:14
 * Dest  预定
 */

public class PurchaseBean implements Parcelable {
    @Override
    public String toString() {
        return "PurchaseBean{" +
                "orderId=" + orderId +
                ", advancetime='" + advancetime + '\'' +
                ", advancemoney='" + advancemoney + '\'' +
                ", payment='" + payment + '\'' +
                '}';
    }

    /**
     * advanceid : 961856133935398912
     * advancetime : 2018-02-09
     * advancemoney : 50000
     * payment : 1
     */

    private long orderId;
    private String advancetime;
    private String advancemoney;
    private String payment;

    private int pSeller;
    private String name;
    private String jobNumber;

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public int getpSeller() {
        return pSeller;
    }

    public void setpSeller(int pSeller) {
        this.pSeller = pSeller;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    private String phone;



    public long getOrderId() {
        return orderId;
    }

    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }

    public String getAdvancetime() {
        return advancetime;
    }

    public void setAdvancetime(String advancetime) {
        this.advancetime = advancetime;
    }

    public String getAdvancemoney() {
        return advancemoney;
    }

    public void setAdvancemoney(String advancemoney) {
        this.advancemoney = advancemoney;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public PurchaseBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.orderId);
        dest.writeString(this.advancetime);
        dest.writeString(this.advancemoney);
        dest.writeString(this.payment);
        dest.writeInt(this.pSeller);
        dest.writeString(this.name);
        dest.writeString(this.jobNumber);
        dest.writeString(this.phone);
    }

    protected PurchaseBean(Parcel in) {
        this.orderId = in.readLong();
        this.advancetime = in.readString();
        this.advancemoney = in.readString();
        this.payment = in.readString();
        this.pSeller = in.readInt();
        this.name = in.readString();
        this.jobNumber = in.readString();
        this.phone = in.readString();
    }

    public static final Creator<PurchaseBean> CREATOR = new Creator<PurchaseBean>() {
        @Override
        public PurchaseBean createFromParcel(Parcel source) {
            return new PurchaseBean(source);
        }

        @Override
        public PurchaseBean[] newArray(int size) {
            return new PurchaseBean[size];
        }
    };
}
